Emit property notification for the text-length property
authorMatthias Clasen <matthiasc@src.gnome.org>
Sat, 27 Dec 2008 01:16:52 +0000 (01:16 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 27 Dec 2008 01:16:52 +0000 (01:16 +0000)
svn path=/trunk/; revision=21938

ChangeLog
gtk/gtkentry.c

index d00dd0ddab03f4242a4f6c8c0ef284dee72e39e3..4f64ff45c53897a48d8e08851f9e814e4bb13465 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkentry.c: Emit property notification for the text-length
+       property.
+
 2008-12-26  Matthias Clasen  <mclasen@redhat.com>
 
        * demos/gtk-demo/search_entry.c: Add a demo for new entry features.
index 18198045a37570c6764d17bd4a1aaa07af82c825..78b15a48c4ecf20992e442f5fad372dc8627c852 100644 (file)
@@ -1187,7 +1187,7 @@ gtk_entry_class_init (GtkEntryClass *class)
    * GtkEntry::icon-pressed:
    * @entry: The entry on which the signal is emitted
    * @icon_pos: The position of the clicked icon
-   * @buttomotione mouse button clicked
+   * @event: the button press event
    *
    * The ::icon-pressed signal is emitted when an icon is clicked.
    *
@@ -1208,7 +1208,7 @@ gtk_entry_class_init (GtkEntryClass *class)
    * GtkEntry::icon-released:
    * @entry: The entry on which the signal is emitted
    * @icon_pos: The position of the clicked icon
-   * @button: The mouse button clicked
+   * @event: the button release event
    *
    * The ::icon-released signal is emitted on the button release from a
    * mouse click.
@@ -4115,6 +4115,7 @@ gtk_entry_real_insert_text (GtkEditable *editable,
 
   emit_changed (entry);
   g_object_notify (G_OBJECT (editable), "text");
+  g_object_notify (G_OBJECT (editable), "text-length");
 }
 
 static void
@@ -4165,6 +4166,7 @@ gtk_entry_real_delete_text (GtkEditable *editable,
 
       emit_changed (entry);
       g_object_notify (G_OBJECT (editable), "text");
+      g_object_notify (G_OBJECT (editable), "text-length");
     }
 }